<!-- 样式管理 -->
<template>
  <div class="container">
    <el-table
    :data="tableData"
    border
    style="width: 100%">
    <el-table-column prop="seekHelpMan" label="求助人"></el-table-column>
    <el-table-column prop="seekHelpTime" label="求助时间"></el-table-column>
    <el-table-column prop="completeTime" label="完成时间"></el-table-column>
    <el-table-column prop="processingStaff" label="处理人员"></el-table-column>
    <el-table-column prop="orderStatus" label="订单状态"></el-table-column>
    <el-table-column fixed="right" label="操作" width="100">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
      </template>
    </el-table-column>
  </el-table>

  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      tableData: [
        {
          seekHelpMan:'悟空',
          seekHelpTime:'2020-10-01 9:20:54',
          completeTime:'2020-10-01 9:25:44',
          processingStaff:'小林',
          orderStatus:'待接单',
        },
        {
          seekHelpMan:'悟空',
          seekHelpTime:'2020-10-01 9:20:54',
          completeTime:'2020-10-01 9:25:44',
          processingStaff:'小林',
          orderStatus:'待接单',
        },
        
       
      ],
     
    };
  },
  methods: {
    handleClick(row) {
      this.$router.push({name:'seekHelpDetails'})
      console.log(row);
    }
  }, // 如果页面有keep-alive缓存功能，这个函数会触发
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  updated() {}, // 生命周期 - 更新之后
  beforeDestroy() {}, // 生命周期 - 销毁之前
  destroyed() {}, // 生命周期 - 销毁完成
  activated() {},
};
</script>
<style lang='scss' scoped>
.container {
  padding: 20px;
  .tb-edit .el-input {
    display: none;
  }
  .tb-edit .current-row .el-input {
    display: block;
  }
  .tb-edit .current-row .el-input + span {
    display: none;
  }
}
</style>
